package module3;

import java.io.PrintStream;
import java.util.Scanner;

public class RepeatCharacter1 {
	PrintStream out;
	Scanner in;
	RepeatCharacter1(){
		out = new PrintStream(System.out);
		in = new Scanner(System.in);
	}

	int readNumber(){
		out.printf("Geef het aantal uitroeptekens: ");
		int number = in.nextInt();
		return number;
	}
	void printExclamationMark(int n){
		for(int i = 0;i < n;i++){
			out.printf("!");
		}
	}
	void start(){
		int herhalingen = readNumber();
		printExclamationMark(herhalingen);
		
	}
	public static void main(String[] args) {
new RepeatCharacter1().start();

	}

}
